package psn.zjk.exporter.utils;

import java.util.Collection;

/**
 *
 * @author Assert
 * @CREATE_TIME 2020/11/14 15:37
 */
public class Assert {

    public static void hasLength(String text,String message){
        if (text==null||text.isEmpty()){
            throw new IllegalArgumentException(message);
        }
    }

    public static void notEmpty(Collection collection,String message){
        if (collection==null||collection.isEmpty()){
            throw new IllegalArgumentException(message);
        }
    }
}